<?php $this->load->view('admin/_header2') ?>

<table id="tt" class="easyui-datagrid" style="width:1200px;height:auto;">
	<thead>
	<tr height=32 >
		<th field="name0" align=center  width=30 ></th>
		<th field="name1" align=center  width=120 >Order No</th>
		<th field="fPNR" align=center  width=80 >PNR</th>
		<th field="name2" align=center  width=80 >Order Status</th>
		<th field="name3" align=center  width=80 >Passenger</th>
		<th field="name4" align=center  width=80>Total Price</th>
		<th field="name12" align=center  width=80>Total Cost</th>
		<th field="refundfee" align=center  width=80>refund fee</th>
		<th field="name6" align=center  width=120>Book Date</th>
		<th field="name7" align=center  width=80 >Flight Number</th>
		<th field="name8" align=center  width=100 >depart Date</th>
		<th field="name9" align=center  width=80>Fromport</th>
		<th field="name10" align=center  width=80>Destport</th>
		<th field="name11" align=center  width=60>Passenger </th>
	</tr>
	</thead>
	<tbody>
	<?php
	
	$index=0;
	foreach($result as $item)
	{
		$index++;
	?><tr align=center >
		<td><?=$index ?></td>
		<td><?=$item->OrderNo  ?><BR/>
			<a href="operorder/<?=$item->OrderNo?>" onclick="return operorder(this);"  target="_blank" style="color:orange" >oper</a>
		</td>
		<td><?=$item->PNR  ?></td>
		<td><?=$OrderStatusdesc[$item->Status] ?></td>
		<td><?=$item->lPessengerName  ?></td>
		<td><?=$item->mainCurrency.":".$item->TotalPrice ?></td>
		<td><?="RMB:".$item->TotalCost ?></td>
		<td><?=$item->mainCurrency.":".$item->backmoney ?></td>
		<td><?=Date("Y-m-d",strtotime($item->BookDate));  ?></td>
		<td><?=$item->airline ?></td>
		<td><?=Date("Y-m-d",strtotime($item->departdate))  ?></td>
		<td><?=$item->fromport ?></td>
		<td><?=$item->destport ?></td>
		<td><?=$item->TotalPassenger ?></td>
	</tr>
	<?php
	}
	?></tbody>
</table>

<div id="addwin" class="easyui-window" title="oper Order" closed="true" iconCls="icon-edit" style="width:680px;height:400px;padding:0px;background: #fafafa;">
	<div class="easyui-layout" fit="true">
		<div id="dvcontext" region="center" border="false" style="padding:10px;background:#fff;border:1px solid #ccc;">
			<iframe width=100% height=100% name="icontext" id="ifracontext" src="" frameborder=0 ></iframe>
		</div>
	</div>
</div>
<script language="javascript">
function operorder(obj)
{
	window.parent.operorder(obj);
	return false;
}
</script>
<?php $this->load->view('admin/_footer1') ?>